Repository navigation
[Scripting] Add block listing and per-block statistics - #288
Closed
BenWibking wants to merge 1 commit into
Closed
BenWibking wants to merge 1 commit into
BenWibking wants to merge 1 commit into
Conversation
This was referenced Oct 29, 2026
BenWibking
force-pushed
the
analysis-5-blocks
branch
from
October 29, 2026 01:28
c2751aa to
2d1ac89
Compare
src/analysis lists a plotfile's grids (FABs) by level and native FAB index, with valid box, bounds, covered cells, and data file, and computes per-grid minima and maxima of fields from the decoded data, NaN ignored. The Python package exposes both as Dataset.blocks and Dataset.block_statistics. python/examples/plotfile_fab_minmax.py ports Kangaroo's script of the same name onto them, keeping its arguments and report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BenWibking
force-pushed
the
analysis-5-blocks
branch
from
October 29, 2026 03:50
2d1ac89 to
5af301b
Compare
BenWibking
force-pushed
the
analysis-4-parallel
branch
from
October 29, 2026 03:50
b3bdacf to
4b8fd0a
Compare
Contributor
Author
|
Dropping this layer from the stack: per-block analysis is only used by the plotfile_fab_minmax.py demo, so it isn't needed. The commit is still preserved on the analysis-deferred branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A plotfile's own grid structure, alongside the leaf-cell view.
listBlocks(C++) andDataset.blocks()(Python) list every grid (FAB) by level and native FAB index, with:covered_fraction)blockStatisticsandDataset.block_statistics(fields)give per-grid minima and maxima from the decoded data, NaN ignored; an all-NaN block reports NaN.python/examples/plotfile_fab_minmax.pyports Kangaroo's script of the same name onto these, keeping its arguments and report. The next PR compares the two.Example:
Tests
test_blocks.py:test_batch.pycancelsblock_statisticswith aCancelToken.Stack
Part of a stack replacing #276. Review and merge in order; each PR shows only its own layer.
🤖 Generated with Claude Code